package cn.ht.jywrwater.module.ht.controller.admin.watercount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 水量统计 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class WaterCountBaseVO {

    @Schema(description = "类型（供水、售水）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型（供水、售水）不能为空")
    private Integer waterType;

    @Schema(description = "年份", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "年份不能为空")
    private String yearValue;

    @Schema(description = "月份", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "月份不能为空")
    private String monthValue;

    @Schema(description = "日期")
    private LocalDate dataDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "22742")
    @NotNull(message = "数量不能为空")
    private Long waterCount;

}
